import { createRouter,createWebHistory } from "vue-router"

const routes = [
    {
        path: "/",
        component:()=> import('@/views/Login.vue')
    },
    {
        path: "/user",
        component:()=> import('@/views/User.vue')
    },
    {
        path: "/:all*",
        component:()=> import('@/views/Error.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router